package reflect;

import java.util.ResourceBundle;

/**
 * @author DBX
 * @effect 资源绑定器，只能绑定xxx.properties文件，并且这个文件必须在类路径下，文件扩展名也必须是properties
 *          写路径时不能写扩展名
 * @date 2021/09/13/20:04
 */
public class AboutPath1 {

    public static void main(String[] args) {
        ResourceBundle resourceBundle = ResourceBundle.getBundle("reflect/classinfo1");
        String classname = resourceBundle.getString("className");
        System.out.println(classname);
    }
}
